package parser;

/**
 * Stores a LOGO Identifier With a Type and the string representing the
 * identifier name
 */
public abstract class LogoIdentifier extends LogoGrammar {
	String identifier;
	LogoIdentifierType type;

	LogoIdentifier(LogoIdentifierType type) {
		this.type = type;
	}

	LogoIdentifier(String identifier, LogoIdentifierType type) {
		this(type);
		this.setIdentifier(identifier);
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getIdentifier() {
		return identifier;
	}

	public LogoIdentifierType getType() {
		return type;
	}

}
